<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
        <p:breadCrumb>  
                <p:menuitem value="#{ml.tr('Home')}" url="#{webContext.baseUrl}" />  
                <p:menuitem value="#{ml.tr('Article list')}" url="#{lm.ml('cms/list.xhtml')}" />  
                <p:menuitem value="#{ml.tr('Article detail')}" url="#" />
        </p:breadCrumb> 

        <h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">

            <h:outputText value="#{ml.tr('Title')}: * " />
            <p:inputText required="true" label="#{ml.tr('Title')}"
                         value="#{cmsArticleEdit.article.title}"
                         requiredMessage="#{ml.tr('The title is required')}" />

            <h:outputText value="#{ml.tr('Language')}: * " />
            <h:selectOneMenu id="selectLanguage" value="#{cmsArticleEdit.article.language}" converter="#{languageConverter}">
                <f:selectItems value="#{cmsArticleEdit.languages}"
                               var="l"
                               itemValue="#{l}"
                               itemLabel="#{l.isoLanguage}" />
            </h:selectOneMenu>

            <h:outputText value="#{ml.tr('Article')}: * " />
            <p:editor value="#{cmsArticleEdit.article.content}" widgetVar="editor" width="600" />  

        </h:panelGrid>
    </h:body>
</html>
